package com.zksw.exceps;

public enum ErrorCode {
    SERVER_ERROR("服务器出现异常，请联系管理员",-1),
    ILLEGAL_ACCESS("非法访问，系统已经记录日志",-1),
    ;

    private String description;
    private int errorCode;

    private ErrorCode(String description, int errorCode) {
        this.description = description;
        this.errorCode = errorCode;
    }

    public String getDescription() {
        return description;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
